-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add import-export options for sidebar filters #1856
Add import-export options for sidebar filters #1856
Conversation
42fe38b
to
7d0c16c
Compare
Add ability to import and export all filters, Charts from sidebar. At the moment user can still export all filters from history in toolbar but to enhance the accessibility this PR add same feature in sidebar. Fixes: esrlabs#1833
3d804a5
to
339b6bd
Compare
Hello @DmitryAstafyev can you please review? Thanks in advance |
application/client/src/app/ui/views/sidebar/search/providers/providers.ts
Outdated
Show resolved
Hide resolved
application/client/src/app/ui/views/sidebar/search/providers/providers.ts
Outdated
Show resolved
Hide resolved
application/client/src/app/ui/views/sidebar/search/providers/providers.ts
Outdated
Show resolved
Hide resolved
application/client/src/app/ui/views/sidebar/search/providers/providers.ts
Outdated
Show resolved
Hide resolved
application/client/src/app/ui/views/sidebar/search/providers/providers.ts
Outdated
Show resolved
Hide resolved
application/client/src/app/ui/views/sidebar/search/providers/providers.ts
Outdated
Show resolved
Hide resolved
In general also in case of an error (import/export) we should inform the user about it. Search via solution be |
819b5b8
to
2a648ca
Compare
public contextMenuOptions(items: IMenuItem[]): IMenuItem[] { | ||
const historySession = history.get(this.session); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if return isn't used, it should return void
; and name probably should be something like injectGeneralMenuItems
. Or if it returns something, it should be getGeneralMenuItems
.
protected filters(historySession: HistorySession): { import(): void; export(): void } { | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
method logAndNotifyError
can be present as arrow-function here (as soon as it's used only in this scope)
const logAndNotifyError = () => {...};
return {...}
protected logAndNotifyError(error: any): void { | ||
this.logger.error(error.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to reduce from any
on client and do not use it.
d35e550
to
e5af70a
Compare
Add ability to import and export all filters, Charts from sidebar. At the moment user can still export all filters from history in toolbar but to enhance the accessibility this PR add same feature in sidebar.
Fixes: #1833